﻿using Microsoft.EntityFrameworkCore;
using YunQue.DataBase;
namespace YunQue.InitDataBase
{
    internal class Program
    {
        static void Main(string[] args)
        {
            var dbContextFactory = new YunQueDbContextFactory();
            using (var dbContext= dbContextFactory.CreateDbContext("TenantCode001", ""))
            {
                // 创建数据库
                string createScript = dbContext.Database.GenerateCreateScript();
                Console.WriteLine(createScript);
            }
        }
    }
}
